package com.zrwl.poscloud.xo.service;

import javax.mail.MessagingException;

public interface EmailService {
    /**
     * 发送邮件
     * @param from 发送方
     * @param to 接收方
     * @param subject 标题
     * @param text 内容
     */
    void sendEmail(String from, String to, String subject, String text);

    /**
     *
     * @param to 接收方
     * @param subject 标题
     */
    void sendHtmlMail(String to, String subject) throws MessagingException;

    String sendMailWithFile() throws MessagingException;
}
